/*
 * @Author: lineCode 1145938682@qq.com
 * @Date: 2024-12-17 10:08:22
 * @LastEditors: lineCode 1145938682@qq.com
 * @LastEditTime: 2024-12-29 06:14:03
 * @FilePath: /backend/shorthand-modules/shorthand-modules-content/src/main/java/com/angus/modules/content/domain/Content.java
 */
package com.angus.modules.content.domain;

import com.angus.common.core.annotation.Excel;
import com.angus.common.core.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liyanan
 * @date 2024/10/21 2:45 PM
 * @description
 */
@Data
@EqualsAndHashCode(callSuper=false)
public abstract class Content extends BaseEntity {

    public abstract String getWord();

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 集束组ID
     */
    private Long groupId;

    @Excel(name = "ID",type = Excel.Type.IMPORT,cellType = Excel.ColumnType.STRING, prompt = "集束标记")
    private String groupFlag;

    /**
     * 课程code
     */
    private String courseCode;

    /** 全局自定义排序 */
    private Long sort;

    @TableField(exist = false)
    private SysUnit unit;

    @TableField(exist = false)
    private String courseName;

}
